<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Add Hosts</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/materialdesignicons.min.css" rel="stylesheet">
    <link href="css/style.min.css" rel="stylesheet">
    <link href="css/min.css" rel="stylesheet">
</head>
<script src="js/brython.js"></script>
<script src="js/brython_stdlib.js"></script>

<body onload="brython()">
<div class="container-fluid">
    <h3>添加主机</h3>
    <div id="hostAddWindow">
        <div>
            <label>主机地址</label>
            <input id="inputHostAddr" class="form-control" type="text"  spellcheck="false" placeholder="默认端口22，若想添加非标准端口，使用:22形式，例如: 127.0.0.1:2222">
        </div>

        <div>
            <label class="control-label">用户名</label>
            <input id="inputHostUsername" class="form-control" type="text" spellcheck="false" placeholder="用户名，默认为root">
        </div>
        <div>
            <label class="text-danger">密码</label>
            <input id="inputHostPasswd" class="form-control" type="text"  spellcheck="false" placeholder="主机密码">
        </div>
        <div>
            <label class="text-danger">ssh证书</label>
            <textarea id="inputHostIdentity" class="form-control" spellcheck="false"></textarea>
        </div>
        <div>
            可以使用密钥或密码
        </div>
        <div>
            <label>备注</label>
            <textarea id="inputHostRemask" class="form-control" type="text" maxlength="20" spellcheck="false" placeholder="主机备注"></textarea>
        </div>

        <div>
            <button class="btn btn-primary" id="saveHostsInfo">Save</button>
        </div>
    </div>
</div>

</body>
</html>

<script type="text/python" src="./python/addHosts.py"></script>